//
//  AWVoiceChatMessage.h
//  AtWork2
//
//  Created by lucas on 15/5/28.
//  Copyright (c) 2015年 Foreveross. All rights reserved.
//

#import "AWChatMessage.h"

/**
 *  语音。
 */
@interface AWVoiceChatMessage : AWChatMessage

@property (nonatomic, copy) NSString *mediaId;

@property (nonatomic, assign, readonly) NSUInteger duration;

@property (nonatomic, strong, readonly) NSData *content;

@property (nonatomic, assign, getter=isPlayed) BOOL played;

@property (nonatomic,assign) BOOL playing;

/**
 *  初始化聊天类型的语音消息。
 */
+ (instancetype)voiceChatMessageWithFrom:(NSString *)from
                                      to:(NSString *)to
                                 deliveryId:(NSString *)deliveryId
                                duration:(NSUInteger)duration
                            chatDescType:(AWChatDestType)chatDestType;

/**
 *  初始化服务号类型的语音消息。
 */
+ (instancetype)voiceServeAppWithFrom:(NSString *)from
                                   to:(NSString *)to
                           deliveryId:(NSString *)deliveryId
                             duration:(NSUInteger)duration;
@end
